<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>加减乘除</title>
</head>
<body>
    <script>
        var first=prompt("请输入第一个数")
        var second=prompt("请输入第二个数")
        var he=(+first)+(+second);
        var cha=first-second;
        var chen=first*second;
        var chu=first/second;
        var yu=first%second;
        document.write("两数之和为："+he+"差为："+cha+"积为："+chen+"商为："+chu+"余数为："+yu)
    </script>
</body>
</html>